package com.ruoyi.project.jiaqin.question.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 问题对象 jiaqin_question
 *
 * @author admin
 * @date 2020-12-30
 */
public class JiaqinQuestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 话题ID */
    @Excel(name = "话题ID")
    private String subjectId;

    /** 话题 */
    private String subjectName;

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    /** 问题标题 */
    @Excel(name = "问题标题")
    private String title;

    /** 问题内容 */
    @Excel(name = "问题内容")
    private String content;

    private String imgUrls;

    private String videoUrl;

    /** 提问人 */
    @Excel(name = "提问人")
    private String memberId;
    private String memberName;
    private String memberIcon;
    private Boolean isFollow;//是否关注 已关注true 未关注false

    /** 是否是企业：0-否 1-是 */
    private Integer isCompany;

    public Integer getIsCompany() {
        return isCompany;
    }

    public void setIsCompany(Integer isCompany) {
        this.isCompany = isCompany;
    }

    public Integer getIsCollect() {
        return isCollect;
    }

    public void setIsCollect(Integer isCollect) {
        this.isCollect = isCollect;
    }

    /** 是否收藏：0-否 1-是 */
    private Integer isCollect;

    public Boolean getFollow() {
        return isFollow;
    }

    public void setFollow(Boolean follow) {
        isFollow = follow;
    }

    /** 提问时间 */
    @Excel(name = "提问时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long views;

    /** 回答量 */
    @Excel(name = "回答量")
    private Long answers;

    /** 回答量 */
    @Excel(name = "点赞量")
    private Long likes;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    private Boolean flagLikes;


    private List<String> questionImg;

    public List<String> getQuestionImg() {
        return questionImg;
    }

    public void setQuestionImg(List<String> questionImg) {
        this.questionImg = questionImg;
    }

    public Boolean getFlagLikes() {
        return flagLikes;
    }

    public void setFlagLikes(Boolean flagLikes) {
        this.flagLikes = flagLikes;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberIcon() {
        return memberIcon;
    }

    public void setMemberIcon(String memberIcon) {
        this.memberIcon = memberIcon;
    }

    private String sortFiled;
    private String sortType;

    public String getSortFiled() {
        return sortFiled;
    }

    public void setSortFiled(String sortFiled) {
        this.sortFiled = sortFiled;
    }

    public String getSortType() {
        return sortType;
    }

    public void setSortType(String sortType) {
        this.sortType = sortType;
    }

    public String getImgUrls() {
        return imgUrls;
    }

    public void setImgUrls(String imgUrls) {
        this.imgUrls = imgUrls;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setSubjectId(String subjectId)
    {
        this.subjectId = subjectId;
    }

    public String getSubjectId()
    {
        return subjectId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setMemberId(String memberId)
    {
        this.memberId = memberId;
    }

    public String getMemberId()
    {
        return memberId;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setViews(Long views)
    {
        this.views = views;
    }

    public Long getViews()
    {
        return views;
    }
    public void setAnswers(Long answers)
    {
        this.answers = answers;
    }

    public Long getAnswers()
    {
        return answers;
    }

    public Long getLikes() {
        return likes;
    }

    public void setLikes(Long likes) {
        this.likes = likes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("subjectId", getSubjectId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("memberId", getMemberId())
            .append("createDate", getCreateDate())
            .append("views", getViews())
            .append("answers", getAnswers())
            .append("sort", getSort())
            .toString();
    }
}
